// miniprogram/pages/poetry/mark/mark.js
const poetry_db = wx.cloud.database().collection("poetry")
Page({
  data: {
    marks: []
  },
  onLoad: function (options) {
    poetry_db.where({
      title: "诗词分类"
    }).get({
      success: (res) => {
        console.log(res)
        var marks = res.data[0].marks
        this.setData({
          marks: marks
        })
      }
    })
  },
  onShareAppMessage: function () {

  },
  //item点击事件
  onItemClick(e) {
    var title = e.currentTarget.dataset.title
    console.log(title)
    wx.navigateTo({
      url: '../rank/rank?title=' + title
    })
  }
})